From 25ae564134f1267e9d19f9bb711334bec46fa05c Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Tue, 24 Apr 2007 12:13:58 +0100 Subject: [PATCH] hvm rombios: Fix int15, func 0x86 (udelay). Was reading argument from wrong stack location with recent versions of bcc. Doing the access from [bp] rather than [sp] is safer as the former does not change all the time. Signed-off-by: Keir Fraser --- tools/firmware/rombios/rombios.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tools/firmware/rombios/rombios.c b/tools/firmware/rombios/rombios.c index eb288a80fa..193c7cb456 100644 --- a/tools/firmware/rombios/rombios.c +++ b/tools/firmware/rombios/rombios.c @@ -4157,15 +4157,12 @@ BX_DEBUG_INT15("int15 AX=%04x\n",regs.u.r16.ax); DX = regs.u.r16.dx; ASM_START - sti - ;; Get the count in eax - mov bx, sp SEG SS - mov ax, _int15_function.CX [bx] + mov ax, .int15_function32.CX [bp] shl eax, #16 SEG SS - mov ax, _int15_function.DX [bx] + mov ax, .int15_function32.DX [bp] ;; convert to numbers of 15usec ticks mov ebx, #15 -- 2.30.2